package com.plian.system.entity.fr.internalauditmanagement;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 内审工作制主表;
 *
 * @author : jiatp
 * @date : 2023-2-17
 */
@Data
@ApiModel(value = "内审工作年度备案主表", description = "内审工作年度备案主表")
@TableName("iam_workyear_audit_project")
public class IamWorkYearAuditProject extends BaseEntity implements Serializable {
    /**
     * 主表序号
     */
    @ApiModelProperty(value = "主表序号", notes = "")
    private Long auditId;

    /**
     * 企业id
     */
    @ApiModelProperty(value = "企业id", notes = "")
    private String enterpriseId;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称", notes = "")
    private String enterpriseName;
    /**
     * 审计项目名称
     */
    @ApiModelProperty(value = "审计项目名称", notes = "")
    private String auditProjectName;
    /**
     * 审计类型id
     */
    @ApiModelProperty(value = "审计类型id", notes = "")
    private String auditCategoryId;

    /**
     * 审计类型名称
     */
    @ApiModelProperty(value = "审计类型名称", notes = "")
    private String auditCategoryName;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", notes = "")
    private Long amount;

    /**
     * 是否为计划 本年和计划标签，1否2是
     */
    @ApiModelProperty(value = "是否为计划 本年和计划标签，1是2否")
    private String isPlan;


    /**
     * 填报年度
     */
    @ApiModelProperty(value = "填报年度", notes = "")
    private String fillingYear;

    /**
     * 填报时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    @ApiModelProperty(value = "填报时间", notes = "")
    private Date fillingTime;

    /**
     * 审批人
     */
    @ApiModelProperty(value = "审批人")
    private String approvedUser;
    /**
     * 审批时间
     */
    @ApiModelProperty(value = "审批时间")
    private Date approvedTime;

    /**
     * 审批流主键
     */
    @ApiModelProperty(value = "审批流主键")
    private String formType;

    /**
     * 单据编码
     */
    @ApiModelProperty(value = "单据编码", notes = "")
    private String code;

}